From: Antoine Musso Date: Thu, 27 Apr 2006 21:17:39 +0000 (+0000) Subject: Fix #5005: XHTML output. X-Git-Tag: 1.31.0-rc.0~57354 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=0d89dad0181ca9212059cc0c14d6d3687e1bfb7e;p=lhc%2Fweb%2Fwiklou.git Fix #5005: XHTML output. Patch by: Jitse Niesen --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9699b278fd..94c09a8477 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -129,6 +129,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Updated maintenance/transstat.php so it can show duplicate messages * Improvements to update scripts; print out the version, check for superuser credentials before attempting a connection, and produce a friendlier error if the connection fails +* (bug 5005): Fix XHTML output. == Compatibility == diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 7ae916b565..561cfb15c3 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -100,8 +100,11 @@ class ImageGallery // Not an image. Just print the name and skip. if ( $nt->getNamespace() != NS_IMAGE ) { - $s .= '
' . - htmlspecialchars( $nt->getText() ) . '
' . (($i%4==3) ? "\n" : ''); + $s .= + (($i%4==0) ? "\n" : '') . + '
' . + htmlspecialchars( $nt->getText() ) . '
' . + (($i%4==3) ? "\n" : ''); $i++; continue;